package com.hjqjl.module_home.ui.custom;

import android.content.Context;
import android.content.Intent;

import com.hjqjl.module_home.databinding.HomeActivityCustomviewBinding;
import com.hjqjl.whapplib.base.BaseActivity;

public class CustomViewActivity extends BaseActivity<HomeActivityCustomviewBinding> {
    public static void start(Context context) {
        Intent starter = new Intent(context, CustomViewActivity.class);
        context.startActivity(starter);
    }

    @Override
    public void initData() {
        setTitle("自定义view控件");
    }

    @Override
    public void initListener() {
        pVBinding.homeBtnCustomView2048.setOnClickListener(v -> Game2048Activity.start(pContext));
        pVBinding.homeBtnCustomViewTitle.setOnClickListener(v -> CustomTitleActivity.start(pContext));
        pVBinding.homeBtnCustomViewPaypwdkeyboard.setOnClickListener(v -> PayPwdKeyboardActivity.start(pContext));
        pVBinding.homeBtnCustomViewNodeprogress.setOnClickListener(v -> NodeProgressActivity.start(pContext));
    }
}
